﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphLibrary
{
    public struct SEdge<TVertex> : IEdge<TVertex>
    {
        private TVertex _source;

        private TVertex _destination;

        public TVertex Source
        {
            get
            {
                return _source;
            }
            set
            {
                _source = value;
            }
        }

        public TVertex Destination
        {
            get
            {
                return _destination;
            }
            set
            {
                _destination = value;
            }
        }

        public SEdge(TVertex source, TVertex destination)
        {
            _source = source;
            _destination = destination;
        }

    }
}
